//
//  TYRequestURL.h
//  NetClass
//
//  Created by wbb on 2020/3/5.
//  Copyright © 2020 TY. All rights reserved.
//

#ifndef TYRequestURL_h
#define TYRequestURL_h

/*
 
 将项目中所有的接口写在这里,方便统一管理,降低耦合
 
 这里通过宏定义来切换你当前的服务器类型,
 将你要切换的服务器类型宏后面置为真(即>0即可),其余为假(置为0)
 如下:现在的状态为测试服务器
 这样做切换方便,不用来回每个网络请求修改请求域名,降低出错事件
 */

#define DevelopSever    1  /**开发服务器*/
#define TestSever       0  /**测试服务器**/
#define ProductSever    0  /**生产服务器*/

#if DevelopSever

/**开发服务器*/
#define URL_main      @"https://www.cfgsdgy.cn/gll/app" // @"http://www.cfgsdgy.cn"

#elif TestSever

/**测试服务器**/

#define URL_main       @"http://172.16.2.72"

#elif ProductSever

/**生产服务器*/

#define URL_main       @"http://class.xanway.com:1122"

#endif


//MARK: ------------------------------ 登录 ------------------------------
/// 登录接口
static NSString * const TYLoginAPI  = @"/login";
/// 登出接口
static NSString * const TYLogoutAPI  = @"/api/v1.0/sysAuth/logout";
/// 配置信息
static NSString * const TYConfigAPI = @"/api/v1.0/sysConfig/list";

//MARK: ------------------------------ 首页 ------------------------------
// 设备概览
static NSString *const TYDevcieStatusCount = @"/app/dev/devcieStatusCount";

// 设备数量统计
static NSString *const TYDevcieTypeCount = @"/app/dev/devcieTypeCount";

/// 统计应急事件发生中的和过去时间段内每个月的发生数
static NSString *const TYQueryMonthCount = @"/app/emergency/event/queryMonthCount";

/// 查询各个管养单位的安全检查单数量
static NSString *const TYGetDeptCount = @"/app/securitycheck/getDeptCount";

/// 能耗统计
static NSString *const TYGetElectricityConsumption = @"/app/dev/getElectricityConsumption";


//MARK: -----------------巡检养护字典-----------------------
///获取巡检养护系统信息
static NSString *const TYPostSystemDictionaryList = @"/app/maintaindict/getSystemDictionaryList";
///获取巡检养护字典列表
static NSString *const TYPostPlanDictionaryList = @"/app/maintaindict/getPlanDictionaryList";
///获取巡检养护对象列表
static NSString *const TYPostBodyDictionaryList = @"/app/maintaindict/getBodyDictionaryList";


//MARK: ------------------------------ 监控告警 ------------------------------
/// 获取告警中的设备告警数和前3条数据明细
static NSString *const TYGetGetAlarmingCountAndInfo = @"/app/rulesalarm/getAlarmingCountAndInfo";
/// 询监控告警详情
static NSString *const TYGetRulesalarmDetail = @"/app/rulesalarm/info/";
/// 查询监控告警列表
static NSString *const TYGetRulesalarm = @"/app/rulesalarm/paging";


//MARK: ------------------------------ 运行监测  ------------------------------
/// 获取设备历史数据
static NSString *const TYGetHisData = @"/app/monitor/getHisData";
/// 获取设备的所有测点
static NSString *const TYGetMeasuringPoints = @"/app/monitor/getMeasuringPoints";
/// 获取设备的实时数据
static NSString *const TYGetRealData = @"/app/monitor/getRealData";
// 设备运行监测分页查询
static NSString *const TYGetPaing = @"/app/monitor/paing";


//MARK: ------------------------------ 故障告警 ------------------------------
/// 故障告警列表
static NSString *const TYGetAlarmworkorder = @"/app/alarmworkorder/paging";
/// 故障告警详情
static NSString *const TYGetAlarmworkorderDetail = @"/app/alarmworkorder/info/";


//MARK: ------------------------------ 应急事件 ------------------------------
/// 应急事件列表
static NSString *const TYGetEmergencyEvent = @"/app/emergency/event/paging";
/// 应急事件详情
static NSString *const TYGetEmergencyEventDetail = @"/app/emergency/event/info/";
///应急预案详情
static NSString *const TYGetEmergencyEventPlanDetail = @"/app/emergency/event/plan/query/";
///应急预案详情
static NSString *const TYGetEmergencyEventQueryWorkFlow = @"/app/emergency/event/queryWorkFlow";

//MARK: ------------------------------ 安全检查  ------------------------------
/// 查询养护单位
static NSString *const TYDeptRelData = @"/app/deptRel/data";
/// 获取巡检养护字典列表
static NSString *const TYGetPlanDictionaryList = @"/app/maintaindict/getPlanDictionaryList";
/// 获取巡检养护系统信息
static NSString *const TYGetSystemDictionaryList = @"/app/maintaindict/getSystemDictionaryList";

static NSString *const TYGetBodyDictionaryList = @"/app/maintaindict/getBodyDictionaryList";
/// 安全检查列表
static NSString *const TYGetSecurityCheck = @"/app/securitycheck/paging";
/// 安全检查详情
static NSString *const TYGetSecurityDetail = @"/app/securitycheck/info/";
///查询养护单位
static NSString *const TYGetDeptRel = @"/app/deptRel/data";

static NSString *const TYGetSecuritycheckReview = @"/app/securitycheck/review";




/// 土建病害类型查询
static NSString *const TYGetFaultType = @"/app/inspection/getFaultType";
static NSString *const TYGetFaultCategory = @"/app/inspection/getFaultCategory";
// 保存
static NSString *const TYAdd = @"/app/securitycheck/add";

//MARK: ------------------------------ 消息 ------------------------------
/// 消息列表
static NSString *const TYGetMsg = @"/app/msg/getMsg";
/// 清除未读
static NSString *const TYGetMsgRead = @"/app/msg/setMsgRead/";
///全部消息已读
static NSString *const TYGetAllMsgRead = @"/app/msg/setMsgAllRead/";
/// AI事件详情
static NSString *const TYGetAiInfo = @"/app/ai/info/";

/// 超高事件详情
static NSString *const TYGetHeightOverInfo = @"/app/camera/getHeightOverAndNearCameral/";






//MARK: ------------------------------ 数据字典接口 ------------------------------
/// 查询单个
static NSString *const TYGetDictType = @"/app/dict/type/";
/// 批量查询
static NSString *const TYGetDictQuery = @"/app/dict/query";
///图片上传
static NSString *const TYGetCommonUpload = @"/common/upload";



//MARK: ------------------------------ 我的 ------------------------------
/// 用户信息
static NSString * const TYGetUserInfoAPI  = @"/app/user/getUserInfo";
/// 修改密码
static NSString * const TYChangeUserInfoAPI  = @"/api/v1.0/userManage/changeUserPwd";

//获取消息设置
static NSString * const TYGetMsgSet  = @"/app/msg/getMsgSet";
//设置消息
static NSString * const TYSetMsg  = @"/app/msg/msgSet";




//MARK: ------------------------------ App运维工单管理 ------------------------------
/// 获取设备的历史维修记录
static NSString * const TYGetQueryHandleHistroy  = @"/app/workorder/queryHandleHistroy";







static NSString * const publicPwd = @"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqdPVFXfjlxUPZZl8WSImi5qTTwckOFG/0zcrLvN6/4aqbroK8vSUVyU1gSSi9Js7wO/HEQy/1q6o2g2BFzMEg84j/fwoREwGQVIJjwTDr6scFZy7S8reA23iikw1lRZqvtw2RpliVLInyLVEgrsL8Y7BeeFPoMwdoszUXx8yIjPHgERmsHw8XL0Xpn4PVbDYfgQz9Z83JMNb3sxIDu1LkRWo2weNi8FSHLiBK9HJpRJKfDN9041S/5sq5yiWi2Ga3VYQ8AwuSfPjgzjPuXz26d/yL9ZY7DNhcgb6iIaSTxbKa9fCAKn9dOSZARXFugY7c2w13FyW+h4z29n8QsOIWQIDAQAB";

static NSString * const publicKeyPEM = @"-----BEGIN PUBLIC KEY-----\n"
    "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqdPVFXfjlxUPZZl8WSImi5qTTwckOFG/0zcrLvN6/4aqbroK8vSUVyU1gSSi9Js7wO/HEQy/1q6o2g2BFzMEg84j/fwoREwGQVIJjwTDr6scFZy7S8reA23iikw1lRZqvtw2RpliVLInyLVEgrsL8Y7BeeFPoMwdoszUXx8yIjPHgERmsHw8XL0Xpn4PVbDYfgQz9Z83JMNb3sxIDu1LkRWo2weNi8FSHLiBK9HJpRJKfDN9041S/5sq5yiWi2Ga3VYQ8AwuSfPjgzjPuXz26d/yL9ZY7DNhcgb6iIaSTxbKa9fCAKn9dOSZARXFugY7c2w13FyW+h4z29n8QsOIWQIDAQAB\n"
    "-----END PUBLIC KEY-----";
#endif /* TYRequestURL_h */
